package org.AI.Cognition.common;

import java.util.HashMap;
/**
 * 存放有效的逻辑对象
 * @author caijie
 *
 */
public class SUBJECT_OBJECT {
	private String name;  //名称
	private String className; //继承于谁
	
	private HashMap<String, String> contents; //具体描述
	
	public SUBJECT_OBJECT(String name, String className){
		this.name = name;
		this.className = className;
		contents = new HashMap<String,String>();
	}
	/**
	 * 获取名字
	 */
	public String getname(){
		return name;
	}
	/**
	 * 写入名字
	 */
	public void setname(String name){
		this.name = name;
	}
	/**
	 * 获取继承于谁
	 */
	public String getClassName(){
		return className;
	}
	/**
	 * 写入继承于什么
	 */
	public void setClassName(String className){
		this.className = className;
	}
	/**
	 * 获取对象某个特殊属性
	 */
	public String getContent(String obj){
		return contents.get(obj);
	}
	/**
	 * 写入对象某个特殊属性
	 */
	public void setContent(String obj, String content){
		contents.put(obj, content);
	}
	/**
	 * 获取全部属性
	 */
	public HashMap getContent(){
		return contents;
	}
}
